/**
 * Created by yongmingwei on 16/10/27.
 */
import React, { Component } from 'react';
import {
    AppRegistry,
    StyleSheet,
    Text,
    View,
    TouchableOpacity
} from 'react-native';
var HomeDetail = React.createClass({
        render(){
            return(
                <View style={styles.contaier}>
                    <TouchableOpacity onPress={()=>{this.popTopHome()}}>
                       <Text style={styles.welcome}>
                           测试跳转
                       </Text> 
                    </TouchableOpacity>
                </View>
            );
        },
        popTopHome() {
            this.props.navigator.pop();
        }
});
const styles = StyleSheet.create({
    contaier:{
        flex : 1,
        justifyContent:'center',
        alignItems:'center',
        backgroundColor:'green'
    },
    welcome:{
        fontSize:20,
        textAlign:'center',
        margin:10,
    }
});
module.exports=HomeDetail;